<?php

/*
	任务列表（工作人员）
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
$return['task_status']=$this->task_status;
$return['task_type']=$this->task_type;
$return['ctype']=$this->ctype;
$return['tixin_type']=$this->tixin_type;
if($_RQ['op']=='get'){
	$params=array('uniacid'=>$_SESSION['uniacid'],'type'=>3);
	$logs=pdo_getall('jy_scrmtask_log',$params);
	foreach($logs as $log){
		$this->model('model')->siyu_uplog($log);
	}
	$params['gtype']=0;
	$qiugen=pdo_count('jy_scrmtask_log',$params);
	$params['status']=2;
	$isgen=pdo_count('jy_scrmtask_log',$params);
	$lastgen=$qiugen-$isgen;
	$return['sheng']=array(
		'qiugen'=>$qiugen,
		'isgen'=>$isgen,
		'lastgen'=>$lastgen,
	);
	$params['gtype']=1;
	$qiugen=pdo_count('jy_scrmtask_log',$params);
	$params['status']=2;
	$isgen=pdo_count('jy_scrmtask_log',$params);
	$lastgen=$qiugen-$isgen;
	$return['jiehun']=array(
		'qiugen'=>$qiugen,
		'isgen'=>$isgen,
		'lastgen'=>$lastgen,
	);
	exi($return);
}